import request from "@/utils/request";
// 角色
export const queryPageApi = (params) =>
  request.get("/roles", { params: params });
export const addApi = (data) => request.post("/roles", data);

//查询回显
export const queryByIdApi = (id) => request.get(`/roles/${id}`);
//修改部门
export const updateApi = (data) => request.put("/roles", data);
//删除部门
export const deleteApi = (id) => request.delete(`/roles/${id}`);

// 获取所有角色
export const getAllRolesApi = () => request.get("/roles/list");
